package ulmermark.demo.concurrency.core.inbox;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;

import org.apache.log4j.Logger;

import ulmermark.demo.concurrency.core.Target;


public class HandoffInbox implements Inbox {
	
	private static final Logger LOGGER = Logger.getLogger( HandoffInbox.class);

	private  final String name;
	
	public HandoffInbox(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public <T> void deliver(final Target<T> target, final T payload) {
		target.received(payload);
	}

}
